Skip to content

Redact OTLP header and Datadog key configs in telemetry#11583

Draft
bm1549 wants to merge 1 commit into
masterfrom
brian.marks/omit-sensitive-config-telemetry
Draft

Redact OTLP header and Datadog key configs in telemetry#11583
bm1549 wants to merge 1 commit into
masterfrom
brian.marks/omit-sensitive-config-telemetry

Conversation

@bm1549

@bm1549 bm1549 commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

What Does This Do

Renders the OTLP exporter header configurations and the Datadog API and application keys as <hidden> in configuration telemetry, and marks them sensitive: true in metadata/supported-configurations.json.

Motivation

These configurations should not be included in configuration telemetry.

Additional Notes

ConfigSettingTest was migrated from Groovy to JUnit 5 as part of adding coverage.

Contributor Checklist

Jira ticket: N/A

@bm1549 bm1549 added comp: telemetry Telemetry tag: ai generated Largely based on code generated by an AI or LLM type:chore labels Jun 6, 2026
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/apm-reliability/dd-trace-java | muzzle: [8/8]   View in Datadog   GitLab

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 9639e05 | Docs | Datadog PR Page | Give us feedback!

@bm1549 bm1549 force-pushed the brian.marks/omit-sensitive-config-telemetry branch from 6f11563 to 19f31ad Compare June 6, 2026 01:32
@dd-octo-sts

dd-octo-sts Bot commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.93 s 13.98 s [-1.2%; +0.5%] (no difference)
startup:insecure-bank:tracing:Agent 12.98 s 12.89 s [-0.5%; +1.8%] (no difference)
startup:petclinic:appsec:Agent 16.77 s 16.61 s [-0.8%; +2.7%] (no difference)
startup:petclinic:iast:Agent 16.85 s 16.86 s [-1.2%; +1.0%] (no difference)
startup:petclinic:profiling:Agent 16.80 s 16.78 s [-1.0%; +1.1%] (no difference)
startup:petclinic:sca:Agent 15.77 s 15.80 s [-12.8%; +12.4%] (unstable)
startup:petclinic:tracing:Agent 15.99 s 16.10 s [-2.1%; +0.8%] (no difference)

Commit: 9639e058 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

…telemetry

Add the OTLP exporter header configurations and the Datadog API key and
application key configurations to the telemetry configuration filter
list so their values are reported as "<hidden>" in the configuration
telemetry:

- OTEL_EXPORTER_OTLP_HEADERS
- OTEL_EXPORTER_OTLP_TRACES_HEADERS
- OTEL_EXPORTER_OTLP_METRICS_HEADERS
- OTEL_EXPORTER_OTLP_LOGS_HEADERS
- DD_API_KEY
- DD_APPLICATION_KEY (and its DD_APP_KEY alias)

For each configuration, every form that can reach ConfigSetting is
covered: the dotted configuration names (otlp.traces.headers,
otlp.metrics.headers, otlp.logs.headers, application-key, app-key) and
the environment-variable names. Mark these configurations, DD_API_KEY,
and DD_APPLICATION_KEY with "sensitive: true" in
metadata/supported-configurations.json.

Migrate ConfigSettingTest to JUnit 5 and extend it to cover the OTLP
header and application key configurations, including an assertion that
the configured value is not present in the reported telemetry value.
Update ConfigCollectorTest so the application key collected through the
ConfigCollector pipeline is asserted to render as "<hidden>".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bm1549 bm1549 force-pushed the brian.marks/omit-sensitive-config-telemetry branch from 19f31ad to 9639e05 Compare June 8, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: telemetry Telemetry tag: ai generated Largely based on code generated by an AI or LLM type:chore

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant